package cn.aitrox.ry.service.anno.mapper;

import cn.aitrox.ry.service.anno.entity.TaskSeriesEntity;
import cn.aitrox.ry.service.anno.po.task.TaskSeriesCountPo;
import com.github.abel533.mapper.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TaskSeriesMapper extends Mapper<TaskSeriesEntity> {

    void batchInsert(@Param("list") List<TaskSeriesEntity> list);

    void deleteByTaskId(@Param("taskId") Integer taskId);

    List<TaskSeriesCountPo> findTaskSeriesCountByTaskIds(@Param("taskIds") List<Integer> taskIdList);

    Integer findGroupIdCountByTaskId(@Param("taskId") Integer taskId);
}
